// 带标签的模板字符串

const str = console.log`hello word`;


const name = '1095h';
const age = 18;
const sex = 'boy';
const myFunc = (strings, name, age, sex) => {
    console.log('strings', strings);
    console.log('name', name);
    console.log('age', age);
    console.log('sex', sex);
};

const result = myFunc`my name is ${name}, age is ${age}, i am a ${sex}`;
console.log('myFuncReturn', result);

console.log('=========');

const myFunc2 = (strings, name, age, sex) => {
    console.log('strings', strings);
    console.log('name', name);
    console.log('age', age);
    console.log('sex', sex);
    return strings[0] + name + strings[1] + age + strings[2] + sex;
};
const result2 = myFunc2`my name is ${name}, age is ${age}, i am a ${sex}`;
console.log('myFunc2Return', result2);
